import request from '/@/utils/request';

export const getDeport = (query: any)=>{
    return request({
        url:'/area/?page='+query.pagenum+'&limit='+query.pagesize+'&searchText='+query.query,
        method:"get"
    })
}

export const addDeport = (query: any)=>{
    return request({
        url:'/area/',
        method: "post",
        data: query
    })
}

export const upDeport = (query:any)=>{
    return request({
        url:'/area/',
        method:"put",
        data: query
    })
}

export const getMessage = (query: any)=>{
    return request({
        url:'/area/message?page='+query.pagenum+'&limit='+query.pagesize+'&searchText='+query.query,
        method:"get"
    })
}

export const getOutload = (query: any)=>{
    return request({
        url:'/area/outload?searchText='+query.query,
        method:"get"
    })
}
